Gatsby Default StarterGatsby logo

#WindowsServer

Create a Windows Server

Nom netbios: SRVAD01 Domain: tssr.info Password admin: P@ssw0rd All other uses passwords: P@ssw0rd

2 partitions or 2 harddisks on the VM : system C: and Data E:

@IP SRVAD01: 192.168.2.101 /24

Roles:

  • DNS server

  • Static hosts

    • freesco.tssr.info @ip of the FreeSCO router
    • routeur.tssr.info
    • www.tssr.info @ip of the SRVAD01 server
  • Domain controller of the Activer Directory

  • DHCP activated and DHCP scope for the LAN created

  • Files servers with the sources manager of the files installed.

other rules are indicated on the paper.

Installing the VMs

  1. We start by with installing Windows Server, Windows Client and FreeSCO to establish LAN connection between them.
  2. We put the 2 VMs on the same LAN by choosing LAN in the network settings.
  3. We go to the FreeSCO IP address on a browser and activate the DHCP.
  4. We verify by pinging the each client.
    1. If ping doesn't work it's mostly because of the firewall, either we disable the firewall or we add a rule to allow entering pings.

Creating 2 Disk Partitions

  1. Go to VM settings and add a disk partition manually. Make it E:\
  2. Go to Disk Manager and make it online and name it Data

Changing the IP address of the Server

  1. Change the IP address from the settings, make it static, server is the DHCP and distributing the address to other devices.

Creating DNSs

  1. Go to the DNS manager inside the Windows Server.
  2. Create the DNS addresses demanded by right-clicking on the white space. F5 to renew the page and see them.
  3. ![[Pasted image 20240312160451.png]]
  4. For FreeSCO we get the latest address in the FreeSCO page like 192.168.1.1
  5. ![[Pasted image 20240312161212.png]]

Installing Active Directory

  1. We go to the Server settings, we right click on the srv01 to change it's name and IP address. Restart needed.

Creating OU and users

  1. Go to AD users and computers from the Server Tools.
  2. Verify the computers in the Server.
  3. Create a new Organizational Unit:
  4. ![[Pasted image 20240313093236.png]]

Adding the Server to the Desktop

  1. run > mmc to open the console
  2. Add AD users and computers, DNS, DHCP to the right
  3. Save as...
  4. Save to desktop to create the icon;

![[Pasted image 20240313101525.png]]

Adding the client PC to the Domain

  1. We do it from the client's machine
  2. Go to sysmd.cpl and edit the name and the domain of the PC.
  3. We have chosen PC-Client01 for the PC name and the domain is tssr.info
  4. Attention: For this to work, we need to stop DHCP of FreeSCO because we want the server to attribute IP addresses to the clients.

Adding a script

  1. Script shouldn't have .txt at the end.
  2. Create a script ******.bat inside the NETLOGON or >>scripts file.
  3. Add the script inside the profiles in AD.

Script content:

@echo off
cls
net use i: \\srvad01\IT_Commun

This script creates IT_Commun file inside each users shared files.